package com.mapKeyVal.key;

public class WoGradeKey {
	private String wo_id;
	private String grade;
	
	public WoGradeKey(String wo_id, String grade) {
		super();
		this.wo_id = wo_id;
		this.grade = grade;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((grade == null) ? 0 : grade.hashCode());
		result = prime * result + ((wo_id == null) ? 0 : wo_id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		WoGradeKey other = (WoGradeKey) obj;
		if (grade == null) {
			if (other.grade != null)
				return false;
		} else if (!grade.equals(other.grade))
			return false;
		if (wo_id == null) {
			if (other.wo_id != null)
				return false;
		} else if (!wo_id.equals(other.wo_id))
			return false;
		return true;
	}
	public String getWo_id() {
		return wo_id;
	}
	public void setWo_id(String wo_id) {
		this.wo_id = wo_id;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	
}
